package com.zhong.scanerdemo.utils;

import com.google.gson.Gson;
import com.zhong.scanerdemo.model.UploadResult;

public class GsonUtil {
	
	public static UploadResult useGson(String result){
		UploadResult uploadResult=null;
		try {
			Gson gson = new Gson();
			uploadResult= gson.fromJson(result, UploadResult.class);
		} catch (Exception e) {
			// TODO: handle exception
		}
		return uploadResult;
		
	}

}
